/**
 * jims
 */
package com.jims.master.modules.drug.dao;

import com.jims.master.common.persistence.CrudDao;
import com.jims.master.common.persistence.annotation.MyBatisDao;
import com.jims.master.modules.drug.entity.DrugDict;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 药品字典维护DAO接口
 * @author zhuq
 * @version 2017-03-02
 */
@MyBatisDao
public interface DrugDictDao extends CrudDao<DrugDict> {

    /**
     * 根据药品drugCode查询列表
     * @param drugDict
     * @author  zhuq
     */
    public List<DrugDict> findByDrugCode(DrugDict drugDict);

    /**
     * 自动补全查询
     * @param drugDict
     * @param q
     * @return
     * @author CTQ
     */
    public List<DrugDict> findAutoCompleteList(@Param("drugDict")DrugDict drugDict,@Param("q")String q,@Param("limit")String limit);

}
